package org.opencare.ndwc.persistence;

import java.util.List;

import org.opencare.ndwc.model.DisasterType;
import org.springframework.dao.DataAccessException;

public interface DisasterTypeDao {
	
    public DisasterType find(Long id) throws DataAccessException;
	
	public List<DisasterType> findAll() throws DataAccessException;
	
	public DisasterType findDisasterTypeByName(String name) throws DataAccessException;

    public void save(DisasterType disasterType) throws DataAccessException;

    public void remove(Long id) throws DataAccessException;
    
    public void removeAll() throws DataAccessException;
    
    public Long countDisasterType() throws DataAccessException;
}
